package guard_grammar;

/**
 * @author Zlatka Trajcheska, Marija Petkovska
 * @version 1.0 03.03.2013 
 * 
 * A skeleton class that is used for holding the Token data.
 *  */
public class Token 
{
	private String id;
	private String value;

	/**
	 * This method is the constructor of the class.
	 * 
	 * @param String id - the id of the token (an id for the token - the type of token)
	 * @param String value - terminal (the real value of the token)
	 */
	public Token(String id, String value)
	{
		this.id=id;
		this.value=value;
	}
	
	
	/**A get method for the id of the token
	 * 
	 * @return String id - the id of the token.
	 *
	 */
	public String getId() {
		return id;
	}

	/**A get method for the value of the token
	 * 
	 * @return String value - the value of the token.
	 *
	 */
	public String getValue() {
		return value;
	}
	
	/**Overriding the toString method.
	 * 
	 * @return String - a string with the token data.
	 *
	 */
	public String toString() {
		return "[id=" + id + ", value=" + value + "]";
	}
}
